#!/bin/sh

. /usr/share/common

start() {
	echo_title "Starting network"

	ifup -v -a
}

stop() {
	echo_title "Stopping network"

	ifdown -v -a
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		sleep 1
		start
		;;
	*)
		echo "Usage: $0 {start|stop|restart}"
		exit 1
		;;
esac

exit 0
